// JavaScript Document
	window.URL = window.URL || window.webkitURL; 
	function handleFiles(obj,preview) { 
	 var preview = $(obj).closest("div").find("#"+preview);
		var files = obj.files,
			img = new Image();
		if(window.URL){
			//File API 
		      img.src = window.URL.createObjectURL(files[0]); //创建一个object URL，并不是你的本地路径
		      img.height = 180;
		      img.onload = function(e) {
		         window.URL.revokeObjectURL(this.src); //图片加载后，释放object URL
		      }
		      preview.html(img);
		}else if(window.FileReader){
			//opera不支持createObjectURL/revokeObjectURL方法。我们用FileReader对象来处理
			var reader = new FileReader();
			reader.readAsDataURL(files[0]);
			reader.onload = function(e){ 
				img.src = this.result;
				img.height = 180;
				preview.html(img);
			}
		}else{
			//ie
			obj.select();
			obj.blur();
			var nfile = document.selection.createRange().text;
			document.selection.empty();
			img.src = nfile;
			img.height = 180;
			img.onload=function(){ 
		    }
			preview.html(img);
			//fileList.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='image',src='"+nfile+"')";
		}
	}